package sn.gandal.mobile.kalpet.server.account;


import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.util.Log;

public class AccountManagerSoap  {
	
	  private static final String NAMESPACE = "http://guichet.kalpet.mobile.gandal.sn/";
	  private static final String URL = "http://192.168.0.30:8080/guichet_service/GuichetServiceService";
	  private static final String SOAP_ACTION_GET_ACCOUNT = "http://guichet.kalpet.mobile.gandal.sn/getAccount";
	  private static final String SOAP_ACTION_ADD_ACCOUNT = "http://guichet.kalpet.mobile.gandal.sn/addAccount";
	  private static final String SOAP_ACTION_AUTH_USER = "authUser";
	  
	  
	  private static final String METHOD_NAME_GET_ACCOUNT = "getAccount";
	  private static final String METHOD_NAME_ADD_ACCOUNT = "addAccount";
	  private static final String METHOD_NAME_AUTH_USER = "authUser";
	  
	  public String authUser(String numeroClient, String codeSecret) {
      String auth=null;
	  
      return auth;
	  }
	  
	  private String parserObjet(Object objet, String property) {
		   
		    return null;
		  } 
	/*  Necessite une permission de l'application : ACCESS_NETWORK_STATE
	 * public boolean isNetworkAvailable() {
		    ConnectivityManager cm = (ConnectivityManager) 
		      getSystemService(Context.CONNECTIVITY_SERVICE);
		    NetworkInfo networkInfo = cm.getActiveNetworkInfo();
		    // if no network is available networkInfo will be null
		    // otherwise check if we are connected
		    if (networkInfo != null && networkInfo.isConnected()) {
		        return true;
		    }
		    return false;
		} */

}
